﻿using FrameServer.Net;
using FrameServer.Handler;
using System;
using System.Collections.Generic;

namespace FrameServer
{
    class StartApplication
    {
        public static void Main(string[] args)
        {
            LogUtil.Init();

            Console.Write("请输入监听的IP地址，默认(回车)为0.0.0.0");
            string input_IP = Console.ReadLine();
            ServerConfig.serverIP = string.IsNullOrEmpty(input_IP) ? "0.0.0.0" : input_IP;
            TCPServer.Instance.StartServer();
            // UDPServer.Instance.StartServer();
            // ChatMgr.Instance.Init();
            NetMsgHandler.Instance.Init();

            Console.ReadLine();
        }
    }
}
